package com.lfy;

import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class interetors implements HandlerInterceptor {
    ThreadLocal<Integer> t = new ThreadLocal<Integer>();
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        t.set(1);
        return true;
    }
}
